package com.nuoniu.sibanyun.controller.erp;


import com.nuoniu.sibanyun.common.BaseController;
import com.nuoniu.sibanyun.common.result.HttpResult;
import com.nuoniu.sibanyun.service.erp.IErpVoucherReferencePropertieService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 单据对应的引用档案属性 前端控制器
 * </p>
 *
 * @author baiqiang
 * @since 2020-11-09
 */
@RestController
@RequestMapping("/erp/voucherReferenceProperty")
@Api(value = "单据设置-引用属性", tags = "单据设置-引用属性")
public class ErpVoucherReferencePropertieController extends BaseController {

    @Autowired
    private IErpVoucherReferencePropertieService erpVoucherReferencePropertieService;

    @GetMapping("list")
    @ApiOperation("通过单据唯一code查询 关联的引用属性")
    public HttpResult  listByVoucherCode(String source){
        return HttpResult.ok(erpVoucherReferencePropertieService.listByVoucherCode(source));
    }

}
